-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/verification project form email verification #1886
Conversation
WalkthroughThe changes in this pull request primarily enhance the handling of email confirmation in project verification processes. Several functions in Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
🧹 Outside diff range and nitpick comments (2)
src/repositories/projectVerificationRepository.ts (2)
Line range hint
207-224
: Add transaction handling for atomic updatesThe email confirmation and form updates should be atomic operations to prevent inconsistent states.
Consider wrapping the updates in transactions:
await getManager().transaction(async transactionalEntityManager => { await transactionalEntityManager.update(ProjectVerificationForm, projectVerificationId, { projectRegistry, emailConfirmedAt: new Date(), emailConfirmed: true, email, }); });Also applies to: 271-289, 296-313, 319-337, 344-373
311-311
: Fix inconsistent email property assignmentSome functions use
email: email
while others use just- email: email, + email,Also applies to: 372-372
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (3)
src/repositories/projectVerificationRepository.ts
(7 hunks)src/resolvers/projectVerificationFormResolver.ts
(3 hunks)src/services/projectVerificationFormService.ts
(6 hunks)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @kkatusic
Summary by CodeRabbit
New Features
Bug Fixes
These changes improve the email verification process, ensuring it is seamlessly tied to project updates while preserving the integrity of existing functionalities.